// 引入api请求
import { requestCategoryList } from '@/api'
const state = {
  // 三级列表数据
  categoryList: []
}
const mutations = {
  // 三级列表数据修改
  SetCategoryList(state, value) {
    state.categoryList = value
  }
}
const actions = {
  // 三级列表数据获取请求
  async getCategoryList({ commit }) {
    const res = await requestCategoryList()
    commit('SetCategoryList', res)
  }
}
const getters = {
}
// 暴漏模块 
export default {
  // 命名空间namespaced
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}